var person = pi.base.extend({
	"$Init":function(_name,_age,_country){
		this.environment.setName(_name).environment.setAge(_age).environment.setCountry(_country);
	},
	"environment":{
		"_name":"", "_age":0, "_country":""
	}
});

var eto = new person("Eto Demerzel","30","Aurora");

var user = person.extend({
	"$Init":function(_email,_password,_name,_age,_country){
		person.$Init.call(this,_name,_age,_country);
		this.environment.setEMail(_email).environment.setPassword(_password);
	},
	"environment":{
		"_eMail":"", "_password":"",
		"_name":"", "_age":0, "_country":""
	}
});

var seldon = new user("hseldon@streeling.edu","dors123raych","Hari Seldon","70","Trantor");

pi.util.Init.push(function(){
	trace(
		pi.get("container"), // asagidaki bilgiler bu element'in icine yazdirilacak.
		"<strong>Person: eto</strong>",
		"name: "+eto.environment.getName(),
		"age: "+eto.environment.getAge(),
		"country: "+eto.environment.getCountry(),
		"<strong>User: seldon</strong>",
		"email: "+seldon.environment.getEMail(),
		"password: "+seldon.environment.getPassword(),
		"name: "+seldon.environment.getName(),
		"age: "+seldon.environment.getAge(),
		"country: "+seldon.environment.getCountry()
	);
});